package cn.itcast.n4_共享模型_管程;

import lombok.extern.slf4j.Slf4j;

/**
 * @program: juc
 * @description:
 * @author: flyduck
 * @create: 2024-09-27 16:26
 **/
@Slf4j(topic = "c.Test20_wait和notify方法_演示没有获取到锁直接调用wait方法")
public class Test20_wait和notify方法_演示没有获取到锁直接调用wait方法 {

    static final Object lock = new Object();

    public static void main(String[] args) throws InterruptedException {
        lock.wait();//IllegalMonitorStateException
    }
}
